﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DesignPattern.Factory;
using System.Reflection;

namespace DesignPatternTest
{
    [TestClass]
    public class Pattern
    {
        [TestMethod]
        public void TestAbstractFactory()
        {
            Bonus bonus = AbstractFactory.GetInstance().CreateBonus();
            double bonusValue = bonus.Calculate();

            Tax tax = AbstractFactory.GetInstance().CreateTax();
            double taxvalue = tax.Calculate();

            double salary = 4000 + bonusValue - taxvalue;
        }
    }
}
